package org.hegang.design.first.bridgepattern;

/**
 * @ClassName Circle
 * @Describe: TODO
 * @Author: gang.he
 * @Email: SmileSkylife@outlook.com
 * @Date: Created in 15:01 2019/8/15
 * @Modified_By: TODO
 * @Version: V1.0
 */
public class Circle extends Shape {

    private int x, y, radius;

    protected Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius =radius;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(radius, x, y);
    }
}
